#define _CRT_SECURE_NO_WARNINGS 1
#include "queue.h"

void queueTest1()
{
	Queue q;
	QueueInit(&q);
	QueuePush(&q, 1);
	QueuePush(&q, 2);
	QueuePush(&q, 3);
	QueuePush(&q, 4);
	QueuePush(&q, 5);
	QueuePrint(&q);

	QueueDestroy(&q);
}

void queueTest2()
{
	Queue q;
	QueueInit(&q);
	QueuePush(&q, 1);
	QueuePush(&q, 2);
	QueuePush(&q, 3);
	QueuePush(&q, 4);
	QueuePush(&q, 5);
	QueuePrint(&q);

	QueuePop(&q);
	QueuePop(&q);
	QueuePop(&q);
	QueuePrint(&q);
	printf("%d\n", QueueFront(&q));
	printf("%d\n", QueueBack(&q));

	QueueDestroy(&q);
}

int main()
{
	//queueTest1();
	queueTest2();

	return 0;
}